package com.fayou.cloud.cloudnacosconsumerorder8899.myhandler;

import com.fayou.cloud.cloudnacosconsumerorder8899.service.FeignPaymentService;
import com.fayou.cloud.entites.CommonResult;
import org.springframework.stereotype.Component;

@Component
public class FeignPaymentServiceFallback implements FeignPaymentService {
    @Override
    public CommonResult selectOne(Integer id) {
        return new CommonResult(404,"消息接口繁忙，请稍后重试！",null);
    }

    @Override
    public String paymentFeignTimeout() {
        return "消息接口繁忙，请稍后重试！";
    }

    @Override
    public String paymentInfo_OK(Integer id) {
        return "消息接口繁忙，请稍后重试！";
    }

    @Override
    public String paymentInfo_TimeOut(Integer id) {
        return "消息接口繁忙，请稍后重试！";
    }

    @Override
    public String paymentCircuitBreaker(Integer id) {
        return "消息接口繁忙，请稍后重试！";
    }
}
